﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using PSE.Framework.Configuration;

namespace Sinacor.UI.Application.Settings
{
    /// <summary>
    /// Seção para configuração dos módulos da aplicação
    /// </summary>
    public class ModulesConfigurationSection : ConfigurationSection
    {
        public ModulesConfigurationSection()
        {
        }

        /// <summary>
        /// Módulos instalados no sistema
        /// </summary>
        [ConfigurationProperty("installedModules", IsDefaultCollection = true)]
        [ConfigurationCollection(typeof(ModuleConfigurationElement), AddItemName = "module")]
        public ConfigurationCollection<ModuleConfigurationElement> InstalledModules
        {
            get
            {
                return (ConfigurationCollection<ModuleConfigurationElement>)this["installedModules"];
            }
        }
    }
}
